<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>category</title>
</head>
<body>
	<h3>123</h3>
</body>
<script type="text/javascript" src="../script/categoryListArr.js"></script>
<script type="text/javascript">
	// var categoryId = '29,37,18,34,47,65,35,12,48,40,66,33,27,41'
	var categoryId = '1,38'
	console.log(categoryListArr)
	var categoryIdCrossFlag = false;
	var categoryIdArr = categoryId.split(',');
	var curName = null;
	for (var j = 0, jLen = categoryListArr.length; j < jLen; j++) {
		var item = categoryIdArr[0];
		var jItem = categoryListArr[j];
		if (item == jItem.category_id) {
			curName = jItem.name;
			break;
		}
	}
	for (var i = 0, len = categoryIdArr.length; i < len; i++) {
		for (var j = 0, jLen = categoryListArr.length; j < jLen; j++) {
			var item = categoryIdArr[i];
			var jItem = categoryListArr[j];
			if (item == jItem.category_id) {
				if (curName != jItem.name) {
					categoryIdCrossFlag = true;
				}
			}
		}
	}
	console.log(categoryIdCrossFlag);

</script>
</html>